package com.iyjhsoc.game.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("competition")
public class CompetitionDO {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date competitionDate;

    private Long teamOneId;

    private String teamOneName;

    private Long teamTowId;

    private String teamTowName;

    private Long victoryTeamId;

    private Integer bo;

    private Integer gameNum;

    private String gameVersion;

    private Long matchId;

    private String outNet;

    private String competitionGroup;

    private Integer gameId;
}
